<?php
if($this->last>1)
{
?>
<div class="paging-holder col-md-12">
    <div class="paging">
        <!-- Previous page link -->
        <?php 
        if (isset($this->previous))
        { 
        ?>
            <a href="javascript:void(0);" class="btn-prev" rel="nofollow" onclick="paginatorPage('<?php echo $this->url(array('page' => $this->previous)); ?>')">&lt;&lt; Trước</a>
        <?php 
        }
        else { 
        ?>
            <a href="javascript:void(0);" class="btn-prev disabled" rel="nofollow">&lt;&lt; Trước</a>
        <?php
        }
        ?>
        <ul>
            
            <!-- Numbered page links -->
            <?php 
            foreach ($this->pagesInRange as $page)
            { 
                if ($page != $this->current)
                { 
            ?>
                    <li><a href="javascript:void(0);"  onclick="paginatorPage('<?php echo $this->url(array('page' => $page)); ?>')"><?php echo $page; ?></a></li>
                <?php 
                }
                else {
                ?>
                    <li class="current"><?php echo $page; ?></li>
            <?php
                }        
            }
            ?>
        </ul>
        <!-- Next page link -->
        <?php
        if (isset($this->next)) 
        {
        ?>
            <a href="javascript:void(0);"  class="btn-next" rel="nofollow" onclick="paginatorPage('<?php echo $this->url(array('page' => $this->next)); ?>')">Tiếp &gt;&gt;</a>
        <?php
        } 
        else {
        ?>
            <a href="javascript:void(0);"  class="btn-next disabled" rel="nofollow">Tiếp &gt;&gt;</a>
        <?php
        }
        ?>
    </div>
</div>
<div class="clearfix"></div>
<?php
}
?>